#!/bin/bash
name='jct-http-server'
if [[ ! -e ~/apps/${name}/restart-${name}.sh ]]
then
    ln -s ~/git-publicfiles/sh/restart-${name}.sh ~/apps/${name}/restart-${name}.sh
fi
cd ~/git-publicfiles && git pull origin master && cd ~/apps/${name} && sh restart-${name}.sh